package com.qiwenshare.file.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.net.ntp.TimeStamp;

import javax.persistence.*;
import java.time.LocalDateTime;

@Data
@Table(name = "system")
@AllArgsConstructor
@NoArgsConstructor
@TableName("system")
public class SystemDO {

    @Id
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 1. cpu占用率
     * 2. 内存占用率
     * 3. 硬盘占用率
     * 4. 网络io流速
     */
    private Integer type;

    private Double used;

    private Double total;
    private Double rate;

    @TableField(value = "fresh_time")
    private LocalDateTime freshTime;

}
